package com.baizhi.yyl.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name="yx_category")
public class Category {
    @Id
    private Integer id;
    @Column(name = "cate_name")
    private String cateName;
    private Integer levels;
    @Column(name = "parent_id")
    private Integer parentId;
}